package com.wl.designpattern.observer;

/**
 * Created by wangliang on 2021/2/23.
 */
public class Girl implements Observer {
    private String name;
    public Girl(String name) {
        this.name = name;
    }
    @Override
    public void update(String message) { //具体行为
        System.out.println(name + ",收到了信息:" + message+"去取快递.");
    }
}
